#ifndef SDL_INIT_H_
#define SDL_INIT_H_

#include <iostream>
#include "SDL/SDL.h"
#include "Graphics.h"

class SDL_initialize
{
public:
	virtual ~SDL_initialize();
	static SDL_initialize* luoSDL();
	
	void setWidth(int width);
	void setHeight(int height);
	void setBpp(int bpp);
	void setTitle(const char* title);
	
	
	SDL_Surface* getScreen() const;
	SDL_Event* getEvent() const;
	
	void startSDL();
	void quit();
	
private:
	SDL_initialize();
	static SDL_initialize* pInstance;
	SDL_Surface *screen;
	SDL_Event event;
	Graphics* g;
	void intMainScreen();
	void setIcon();
	
	int width, height, bpp;
	SDL_Surface* icon;
};

#endif /*SDL_INIT_H_*/
